<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<style>
    body {
        padding: 50px;
    }
    
    .picture {
        width: 400px;
        height: 400px;
        transform: rotate(45deg);
        overflow: hidden;
    }
    
    .picture>img {
        max-width: 100%;
        max-width: 100%;
        transform: rotate(-45deg) scale(1.42);
    }
    
    .picture2 {
        border: 1px solid black;
        width: 400px;
        height: 400px;
        overflow: hidden;
    }
    
    .picture2>img {
        width: 400px;
        height: 400px;
        clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
        transition: 1s clip-path;
    }
    
    img:hover {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .case1 {}
    
    .case2 {}
    
    .case3 {}
</style>

<body>
    <div class="mydiv case1 picture">
        <img src="../adam-catlace.png" alt="..." />
    </div>
    <div class="mydiv case1 picture2">
        <img src="../adam-catlace.png" alt="..." />
    </div>
    <div class="mydiv case3"></div>
</body>

</html>